package org.csmzxy.class2333;
import java.io.File;
public class Example06 {
    public static void fileDir(File dir){
        File[] files = dir.listFiles();
        for (File file : files){
            System.out.println(file.getAbsolutePath());
            if (file.isDirectory()){
                fileDir(file);
            }
        }
    }
    public static void main(String[] args) {
        File file = new File("C:\\Users\\Administrator.pc-PC\\Desktop\\FileDemo\\src\\file");
        fileDir(file);
    }
}
